﻿#ifndef SETUP_H
#define SETUP_H

#include <QWidget>
#include "Config.h"
#include "tool.h"

namespace Ui {
class setup;
}

class setup : public QWidget
{
    Q_OBJECT

public:
    explicit setup(QWidget *parent = nullptr, Config *mainConf = nullptr);
    ~setup();

signals:
    void setupSave(void);

private slots:
    void on_pushButtonSave_clicked();

    void on_pushButtonCancel_clicked();

    void on_spinBoxLeftStep_valueChanged(int arg1);

    void on_pushButtonAddLeftStep_clicked();

    void on_pushButtonDecLeftStep_clicked();

    void on_spinBoxRightStep_valueChanged(int arg1);

    void on_pushButtonAddRightStep_clicked();

    void on_pushButtonDecRightStep_clicked();

    void on_spinBoxSlowRate_valueChanged(int arg1);

    void on_pushButtonAddSlowRate_clicked();

    void on_pushButtonDecSlowRate_clicked();

    void on_spinBoxFastRate_valueChanged(int arg1);

    void on_pushButtonAddFastRate_clicked();

    void on_pushButtonDecFastRate_clicked();

private:
    Ui::setup *ui;

    Config *conf;
    bool isSave;

    void initUI();
};

#endif // SETUP_H
